From 7990584bb09ca04f5c79fa832d763d35ad0eae59 Mon Sep 17 00:00:00 2001 From: Allen Kay Date: Wed, 2 Feb 2011 17:06:36 +0000 Subject: [PATCH] libxl: pass gfx_passthru parameter to QEMU Pass gfx_passthru parameter to QEMU. Keep it boolean for now as QEMU does not expect any other integer value. Signed-off-by: Allen Kay Acked-by: Stefano Stabellini Committed-by: Ian Jackson --- tools/libxl/libxl_dm.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/libxl/libxl_dm.c b/tools/libxl/libxl_dm.c index 3bef49aedc..8d5dc423c9 100644 --- a/tools/libxl/libxl_dm.c +++ b/tools/libxl/libxl_dm.c @@ -148,6 +148,9 @@ static char ** libxl_build_device_model_args_old(libxl__gc *gc, if ( ioemu_vifs == 0 ) { flexarray_vappend(dm_args, "-net", "none", NULL); } + if (info->gfx_passthru) { + flexarray_append(dm_args, "-gfx_passthru"); + } } if (info->saved_state) { flexarray_vappend(dm_args, "-loadvm", info->saved_state, NULL); @@ -281,6 +284,9 @@ static char ** libxl_build_device_model_args_new(libxl__gc *gc, flexarray_append(dm_args, "-net"); flexarray_append(dm_args, "none"); } + if (info->gfx_passthru) { + flexarray_append(dm_args, "-gfx_passthru"); + } } if (info->saved_state) { flexarray_append(dm_args, "-loadvm"); -- 2.30.2